-- GENERATED SPELL FOR [Infinite Eradicator] --


function spell0_32185(pUnit, Event) --@Hasten,Self--
pUnit:FullCastSpellOnTarget(31458,pUnit)
pUnit:RegisterEvent('Sorts_32185', 10346, 1)
end

function spell1_32185(pUnit, Event) --@Temporal Vortex,n/a--
pUnit:FullCastSpellOnTarget(52657,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32185', 5000, 1)
end

function spell2_32185(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(31475,pUnit)
pUnit:RegisterEvent('Sorts_32185', 569, 1)
end

function Sorts_32185(pUnit, Event)
local choix_sorts_32185 = math.random(0, 2)
if choix_sorts_32185 == 0 then
pUnit:RegisterEvent('spell0_32185', 1, 1)
end
if choix_sorts_32185 == 1 then
pUnit:RegisterEvent('spell1_32185', 1, 1)
end
if choix_sorts_32185 == 2 then
pUnit:RegisterEvent('spell2_32185', 1, 1)
end
end

function mob32185_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32185', math.random(1500, 3000), 1)
end

function mob32185_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32185_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32185_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32185, 1, 'mob32185_Action')
RegisterUnitEvent(32185, 2, 'mob32185_Leave')
RegisterUnitEvent(32185, 3, 'mob32185_Kill')
RegisterUnitEvent(32185, 4, 'mob32185_Die')
